<?php

/**
 *二维码簿
 */

$sql = "
CREATE TABLE IF NOT EXISTS " . tablename('tim_booksetting') . " (
`book_id` int(10) unsigned  AUTO_INCREMENT,
`uniacid` int(11) NOT NULL,
`rid` int(11),
`title` varchar(40) NOT NULL,
`tips` varchar(100),
`share_title` varchar(100),
`share_icon` varchar(200),
`share_content` varchar(200),
 PRIMARY KEY (`book_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;";
pdo_query($sql);

$sql = "
CREATE TABLE IF NOT EXISTS " . tablename('tim_book') . " (
`id` int(10) unsigned  AUTO_INCREMENT,
`book_id` int(10),
`ew_img` varchar(200) NOT NULL,
`ew_intro` varchar(100) NOT NULL,
`ew_title` varchar(40) NOT NULL,
`ew_order` int(11) NOT NULL,
 PRIMARY KEY (`id`),
 INDEX(`book_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;";
pdo_query($sql);

